import { post } from '../../../request.js'

/**
 * 查询业务模型列表
 * @param {*} params
 * @returns
 */
export const dataModelList = params => {
    return post({
        url: '/tool/dmd/dataModel/pageList',
        params
    })
}

/**
 * 创建表
 * @param {} params
 * @returns
 */
export const createTable = params => {
    return post({
        url: '/tool/dmd/dataModel/createTable',
        params
    })
}

/**
 * 创建字段
 * @param {} params
 * @returns
 */
export const createColumn = params => {
    return post({
        url: '/tool/dmd/dataModel/createColumn',
        params
    })
}

/**
 * 创建索引
 * @param {} params
 * @returns
 */
export const createIndex = params => {
    return post({
        url: '/tool/dmd/dataModel/createIndex',
        params
    })
}

/**
 * 应用
 * @param {*} params
 * @returns
 */
export const syncDataModel = params => {
    return post({
        url: '/tool/dmd/dataModel/syncDataModel',
        params
    })
}

/**
 * 删除数据模型
 * @param {*} params
 * @returns
 */
export const deleteTable = params => {
    return post({
        url: '/tool/dmd/dataModel/deleteTable',
        params
    })
}
